package com.passer.webcrawler.rss;

import com.passer.toolbox.common.crawler.DownloadCrawler;
import org.apache.http.Header;

import java.io.File;
import java.io.IOException;

/**
 * RSS 订阅
 */
public class RssSubscribe {


    public void getRssContent(String url, String filePath) {
        DownloadCrawler downloadCrawler = new DownloadCrawler(url, new Header[0]);
        try {
            downloadCrawler.downloadFile(new File(filePath));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}
